package com.ruoyi.project.records.service.impl;

import com.ruoyi.project.records.domain.DrugSale;
import com.ruoyi.project.records.mapper.DrugSaleMapper;
import com.ruoyi.project.records.service.IDrugSaleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
@RequestMapping("/records")
public class DrugSaleServiceImpl implements IDrugSaleService {

    @Autowired
    private DrugSaleMapper drugSaleMapper;

    //根据药品名称和交易时间，查询药品销售总量统计
    @Override
    public List<DrugSale> selDrugSaleSum(String drugName, Map<String, Object> params) {
        return drugSaleMapper.selDrugSaleSum(drugName, params);
    }

    @Override
    public List<DrugSale> selAllDrugSaleInfo(String drugName, Map<String, Object> params) {
        return drugSaleMapper.selAllDrugSaleInfo(drugName,params);
    }
}
